package com.smiier.skin.net;

import java.io.File;
import java.util.ArrayList;

import android.content.Context;
import cn.o.app.json.JSONField;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.DoctorPathogenesisSetTask.DoctorPathogenesisSetRequest;
import com.smiier.skin.net.DoctorPathogenesisSetTask.DoctorPathogenesisSetResponse;
import com.smiier.skin.net.entity.Pathogenesis;
import com.smiier.skin.util.GlobalSettings;

public class DoctorPathogenesisSetTask extends
		NetTask<DoctorPathogenesisSetRequest, DoctorPathogenesisSetResponse> {
	public static class DoctorPathogenesisSetRequest extends ORequest {
		public ArrayList<File> pic;
		public String content;
		public Long id;
		public String appname = Constant.APP_NAME;
		@JSONField(format = "yyyy-MM-dd HH:mm:ss")
		public JsonDate pathogenesistime;

		public Long patient_uid;
	}

	public static class DoctorPathogenesisSetResponse extends OResponse {
		public Pathogenesis Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Doctor.Pathogenesis.Set";
		mRequestMethod = METHOD_GET;
	}
}
